package com.ktjy.springthymeleaf.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * @return 13141
 * 2025/7/14
 * 16:05
 */
@Data
public class Role implements Serializable {
    private Long roleId;
    private String roleName;
    private String roleDesc;
    private Integer roleFlag;

    // 构造函数
    public Role(String roleName, String roleDesc, Integer roleFlag) {
        this.roleName = roleName;
        this.roleDesc = roleDesc;
        this.roleFlag = roleFlag;
    }

    public Role(Long roleId, String roleName, String roleDesc, Integer roleFlag) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.roleDesc = roleDesc;
        this.roleFlag = roleFlag;
    }

    public Role() {
    }
}
